import { connect } from 'react-redux'
import MyCollection from '../../../views/My/MyOperation/MyCollection'

function mapStateToProps(state: any) {
    return {
        userInfo: state.user.userInfo,
        collData: state.user.collData
    }
}

function mapDispatchToProps(dispatch: (obj: any) => void) {
    return {
        'SET_USER_COLLECTION': (data: any) => {
            dispatch({ type: 'SET_USER_COLLECTION', data })
        }
    }
}

export default connect(mapStateToProps, mapDispatchToProps)(MyCollection)